/**
 * Created by lenovo on 2017/5/17.
 */
public class Book {
    private String title;
    private int pageNum;
    private String type;
    public Book(String title, int pageNum) {
        this.type = "计算机";
        this.pageNum = pageNum;
        this.title = title;
    }
    public Book(String title, int pageNum, String type) {
        this.title = title;
        this.pageNum = pageNum;
        this.type = type;
    }
    void detail()
    {
        System.out.println(this.title+","+this.pageNum+","+this.type);
    }
}